package com.joysuch.wwyt.bp.bean.contractor;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.joysuch.wwyt.core.bean.BaseAttachmentBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * 承包商违章记录管理
 *
 * @author sumeiqi
 * 2021-01-12
 */
@Data
public class BpContractorViolationRecordBean {

    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("承包商违章记录管理编码")
    private String code;
    @ApiModelProperty("承包商表Id")
    private Long contractorId;
    @ApiModelProperty("承包商单位名称")
    private String contractorName;
    @ApiModelProperty("项目名称")
    @Length(max = 64,message = "项目名称长度不超过{max}字符")
    private String projectName;
    @ApiModelProperty("违章日期")
    private LocalDate violatorDate;
    @ApiModelProperty("处理结果")
    @Length(max = 600,message = "处理结果长度不超过{max}字符")
    private String processingResults;
    @ApiModelProperty("违章人姓名")
    @Length(max = 64,message = "违章人姓名长度不超过{max}字符")
    private String violatorName;
    @ApiModelProperty("承包商信息")
    private BpContractorBean contractor;


    @ApiModelProperty("违章类型")
    private Integer violationType;
    private String violationTypeName;

    @ApiModelProperty("处罚金额")
    private String penaltyAmount;

    @ApiModelProperty("处罚积分")
    private String penaltyIntegral;

    @ApiModelProperty("附件")
    private List<BaseAttachmentBean> attachment;

    private Integer violationCount;//次数
    private Double violationAmount;
    private Double violationIntegral;
    private String violationDetail;
    private Date beginTime;
    private Date endTime;

}
